package Day21.面向对象测试;

public class Demo1 {


    private static int method() {
        System.out.println("静态属性被执行...");
        return 10;
    }


    static {
        System.out.println("静态代码块2....");
    }

    static int num=method();

    static{
        System.out.println("静态代码块1...");
    }



    public static void main(String[] args) {

    }
}
